<?php
/*
Template Name: Tin Tuc
*/
?>
<?php get_header(); ?>

    <section id="postlist">
        <div class="container">
            <div class="sixteen columns postlist">
                <h1>Tin tức</h1>
                <?php
                $args = array('category' => 6 ,'order' => 'ASC',);
                $myposts = get_posts( $args );
                foreach ( $myposts as $post ) : setup_postdata( $post ); ?>

                    <article>
                        <?php echo get_the_post_thumbnail(get_the_ID() ,'medium');  ?>
                        <a href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
                        <div class="post-meta">
                            <?php //the_date('d/m/Y g:i:s A'); ?>
                            <?php the_modified_date('d/m/Y g:i:s A'); ?>
                            <span>|</span>
                            <?php the_author(); ?>
                        </div>
                        <?php the_excerpt(); ?>
                        <a href="<?php the_permalink(); ?>" class="readmore">Xem thêm</a>
                    </article>
                <?php endforeach;
                wp_reset_postdata();
                ?>

            </div>
        </div>
    </section>

<?php //get_sidebar(); ?>

<?php get_footer(); ?>